DEF_PROJECT=../../..
include $(DEF_PROJECT)/scripts/main.mk
name=findutils
version=4.4.2
prefix=/usr
destdir=$(DIR_SYSROOT)
extdeps=eglibc-tools gcc-tools binutils-tools linux-header-tools

DL_SERV=http
DL_HOST=ftp.gnu.org
DL_PATH=gnu/$(name)
DL_SUFFIX=tar.gz

cflags+=--host=$(CC_TARGET)
cflags+=--build=$(CC_HOST)
cflags+=--cache-file=$(DEF_CACHE)

pre-build:
	echo gl_cv_func_wcwidth_works=yes >$(source)/$(DEF_CACHE)
	echo gl_cv_header_working_fcntl_h=yes >>$(source)/$(DEF_CACHE)
	echo ac_cv_func_fnmatch_gnu=yes >>$(source)/$(DEF_CACHE)
	cd $<;$(cdefs) ./configure $(cflags)
